package backstage.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import backstage.app.entity.Constitution;
import backstage.app.mapper.ConstitutionMapper;
import backstage.app.service.ConstitutionService;

@Service
public class ConstitutionServiceImpl extends ServiceImpl<ConstitutionMapper, Constitution>implements ConstitutionService {

	@Autowired
	private ConstitutionMapper constitutionMapper;
	@Override
	public int deleteByPrimaryKey(Integer cid) {
		// TODO Auto-generated method stub
		return constitutionMapper.deleteByPrimaryKey(cid);
	}

	@Override
	public int insertSelective(Constitution constitution) {
		// TODO Auto-generated method stub
		return constitutionMapper.insertSelective(constitution);
	}

	@Override
	public Constitution selectByPrimaryKey(Integer cid) {
		// TODO Auto-generated method stub
		return constitutionMapper.selectByPrimaryKey(cid);
	}

	@Override
	public int updateByPrimaryKey(Constitution constitution) {
		// TODO Auto-generated method stub
		return constitutionMapper.updateByPrimaryKey(constitution);
	}
	
}
